package _switch

import (
	"fmt"
	"log"
)

func fnPrt(v string) func(r string) string {
	switch v {
	case "fmt":
		return func(s string) string {
			return fmt.Sprintf(s)
		}
	case "log":
		return func(s string) string {
			return log.Prefix()
		}
	default:
		log.Print("not match method")
	}

	return nil
}
